package com.wicket.okrbff.biz.service.dto.common;


import com.wicket.okrbff.common.dto.PagedDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc BffStaffingDto
 * @使用场景
 */
@Data
public class BffStaffingDto extends PagedDto implements Serializable {

    /**
     * 编制ID:
     */
    @ApiModelProperty("编制ID")
    private String staffingId;

    /**
     * 编制编号:
     */
    @ApiModelProperty("编制编号")
    private String staffingNumber;

    /**
     * 是否兼职编制:
     */
    @ApiModelProperty("是否兼职编制")
    private String isPartTimeStaffing;

    /**
     * 临时锁定状态:
     */
    @ApiModelProperty("临时锁定状态")
    private String tempLock;

    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;

    /**
     * 冗余职务名称:
     */
    @ApiModelProperty("冗余职务名称")
    private String positionIdName;

    /**
     * 职务级别名称:
     */
    @ApiModelProperty("职务级别名称")
    private String positionGradeName;

    /**
     * 岗位名称:
     */
    @ApiModelProperty("岗位名称")
    private String stationName;

    /**
     * 身份人员ID:
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;

    /**
     * 身份人员编号:
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 是否兼职:
     */
    @ApiModelProperty("是否兼职")
    private String isPtJob;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 部门名称（中文）:
     */
    @ApiModelProperty("部门名称（中文）")
    private String deptName;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      BffStaffingDto that = (BffStaffingDto) o;
      return  staffingId == that.staffingId&&staffingNumber == that.staffingNumber&&isPartTimeStaffing == that.isPartTimeStaffing&&tempLock == that.tempLock&&subjectLifeCycle == that.subjectLifeCycle&&positionIdName == that.positionIdName&&positionGradeName == that.positionGradeName&&stationName == that.stationName&&originalRoleMemberId == that.originalRoleMemberId&&roleMemberCode == that.roleMemberCode&&isPtJob == that.isPtJob&&userFace == that.userFace&&idCardName == that.idCardName&&nickName == that.nickName&&deptName == that.deptName;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), staffingId,staffingNumber,isPartTimeStaffing,tempLock,subjectLifeCycle,positionIdName,positionGradeName,stationName,originalRoleMemberId,roleMemberCode,isPtJob,userFace,idCardName,nickName,deptName);
    }

}
